﻿using IM.Easy.Core.OAuth.OAuthUser;
using Refit;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IM.Easy.Core.OAuth.ProvidersApi
{
    public interface IOAuthApi
    {
        /// <summary>
        /// 通过code获取access token
        /// </summary>
        /// <param name="parm"></param>
        /// <returns></returns>
        //[Post("/oauth/token")]
        Task<OAuthTokenResponse> GetAccessToken([Query] OAuthTokenRequest parm);

        //[Get("/api/v5/user")]
        Task<GiteeUserInfo> GetUserInfoAsync([AliasAs("access_token")] string accessToken);
    }
}
